/*  
 *  Copyright 2006 Paul Jack.
 *
 *  This file is part of the Dex compiler suite. 
 *  
 *  Dex is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License as published by the
 *  Free Software Foundation; either version 2 of the License, or (at your
 *  option) any later version.
 *  
 *  Dex is distributed in the hope that it will be useful, but
 *  WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 *  Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 */
package dex.compiler.checker.type;


import dex.compiler.problem.Ambiguity;
import dex.compiler.problem.Crime;
import dex.compiler.problem.Omission;


/**
 * The problems that can occur when checking types for validity.
 */
final public class TypeProblems {


	/**
	 * Static enum-like class, do not instantiate.
	 */
	private TypeProblems() {
	}
	
	
	final public static Ambiguity AMBIGUOUS_TYPE
	 = new Ambiguity("Type found more than once: ");


	final public static Omission MISSING_TYPE 
	 = new Omission("Type not found: ");


	final public static Crime INVISIBLE_TYPE
	 = new Crime("Type not visible: ");

	
	final public static Crime BAD_SUPERCLASS
	 = new Crime("Superclass is not a class type: ");
	
	
	final public static Ambiguity AMBIGUOUS_SUPERCLASS 
	 = new Ambiguity("Superclass defined more than once: ");
	
	
	final public static Omission MISSING_SUPERCLASS
	 = new Omission("Superclass not found: ");


	final public static Crime INVISIBLE_SUPERCLASS
	 = new Crime("Superclass not visible: ");
	
	final public static Crime CIRCULAR_CLASS
	 = new Crime("Circular class dependency: ");
}
